Optimal. Leaf size=61 \[ -\frac{3 \sin \left (a+\frac{b}{x}\right )}{b^2 x^2}+\frac{6 \sin \left (a+\frac{b}{x}\right )}{b^4}-\frac{6 \cos \left (a+\frac{b}{x}\right )}{b^3 x}+\frac{\cos \left (a+\frac{b}{x}\right )}{b x^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0676861, antiderivative size = 61, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 3, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {3379, 3296, 2637} \[ -\frac{3 \sin \left (a+\frac{b}{x}\right )}{b^2 x^2}+\frac{6 \sin \left (a+\frac{b}{x}\right )}{b^4}-\frac{6 \cos \left (a+\frac{b}{x}\right )}{b^3 x}+\frac{\cos \left (a+\frac{b}{x}\right )}{b x^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3379
Rule 3296
Rule 2637
Rubi steps
\begin{align*} \int \frac{\sin \left (a+\frac{b}{x}\right )}{x^5} \, dx &=-\operatorname{Subst}\left (\int x^3 \sin (a+b x) \, dx,x,\frac{1}{x}\right )\\ &=\frac{\cos \left (a+\frac{b}{x}\right )}{b x^3}-\frac{3 \operatorname{Subst}\left (\int x^2 \cos (a+b x) \, dx,x,\frac{1}{x}\right )}{b}\\ &=\frac{\cos \left (a+\frac{b}{x}\right )}{b x^3}-\frac{3 \sin \left (a+\frac{b}{x}\right )}{b^2 x^2}+\frac{6 \operatorname{Subst}\left (\int x \sin (a+b x) \, dx,x,\frac{1}{x}\right )}{b^2}\\ &=\frac{\cos \left (a+\frac{b}{x}\right )}{b x^3}-\frac{6 \cos \left (a+\frac{b}{x}\right )}{b^3 x}-\frac{3 \sin \left (a+\frac{b}{x}\right )}{b^2 x^2}+\frac{6 \operatorname{Subst}\left (\int \cos (a+b x) \, dx,x,\frac{1}{x}\right )}{b^3}\\ &=\frac{\cos \left (a+\frac{b}{x}\right )}{b x^3}-\frac{6 \cos \left (a+\frac{b}{x}\right )}{b^3 x}+\frac{6 \sin \left (a+\frac{b}{x}\right )}{b^4}-\frac{3 \sin \left (a+\frac{b}{x}\right )}{b^2 x^2}\\ \end{align*}
Mathematica [A] time = 0.0045402, size = 61, normalized size = 1. \[ -\frac{3 \sin \left (a+\frac{b}{x}\right )}{b^2 x^2}+\frac{6 \sin \left (a+\frac{b}{x}\right )}{b^4}-\frac{6 \cos \left (a+\frac{b}{x}\right )}{b^3 x}+\frac{\cos \left (a+\frac{b}{x}\right )}{b x^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.008, size = 165, normalized size = 2.7 \begin{align*} -{\frac{1}{{b}^{4}} \left ( - \left ( a+{\frac{b}{x}} \right ) ^{3}\cos \left ( a+{\frac{b}{x}} \right ) +3\, \left ( a+{\frac{b}{x}} \right ) ^{2}\sin \left ( a+{\frac{b}{x}} \right ) -6\,\sin \left ( a+{\frac{b}{x}} \right ) +6\, \left ( a+{\frac{b}{x}} \right ) \cos \left ( a+{\frac{b}{x}} \right ) -3\,a \left ( - \left ( a+{\frac{b}{x}} \right ) ^{2}\cos \left ( a+{\frac{b}{x}} \right ) +2\,\cos \left ( a+{\frac{b}{x}} \right ) +2\, \left ( a+{\frac{b}{x}} \right ) \sin \left ( a+{\frac{b}{x}} \right ) \right ) +3\,{a}^{2} \left ( \sin \left ( a+{\frac{b}{x}} \right ) - \left ( a+{\frac{b}{x}} \right ) \cos \left ( a+{\frac{b}{x}} \right ) \right ) +{a}^{3}\cos \left ( a+{\frac{b}{x}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.14778, size = 68, normalized size = 1.11 \begin{align*} \frac{{\left (i \, \Gamma \left (4, \frac{i \, b}{x}\right ) - i \, \Gamma \left (4, -\frac{i \, b}{x}\right )\right )} \cos \left (a\right ) +{\left (\Gamma \left (4, \frac{i \, b}{x}\right ) + \Gamma \left (4, -\frac{i \, b}{x}\right )\right )} \sin \left (a\right )}{2 \, b^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.53806, size = 112, normalized size = 1.84 \begin{align*} \frac{{\left (b^{3} - 6 \, b x^{2}\right )} \cos \left (\frac{a x + b}{x}\right ) - 3 \,{\left (b^{2} x - 2 \, x^{3}\right )} \sin \left (\frac{a x + b}{x}\right )}{b^{4} x^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 7.66222, size = 61, normalized size = 1. \begin{align*} \begin{cases} \frac{\cos{\left (a + \frac{b}{x} \right )}}{b x^{3}} - \frac{3 \sin{\left (a + \frac{b}{x} \right )}}{b^{2} x^{2}} - \frac{6 \cos{\left (a + \frac{b}{x} \right )}}{b^{3} x} + \frac{6 \sin{\left (a + \frac{b}{x} \right )}}{b^{4}} & \text{for}\: b \neq 0 \\- \frac{\sin{\left (a \right )}}{4 x^{4}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sin \left (a + \frac{b}{x}\right )}{x^{5}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]